import { RouteRecordRaw } from 'vue-router'
import Layout from '@/layout/index.vue'

const configRoutes: RouteRecordRaw[] = [
	{
		path: '/user',
		component: Layout,
		redirect: '/user/list',
		meta: { title: '用户板块', index: 3 },
		children: [
			{
				path: '/user/list',
				name: 'user',
				component: () => import('@/views/user/user.vue'),
				meta: { title: '用户页', icon: 'User' },
			},
		],
	},
]

export default configRoutes
